public interface GenericDao<E, ID extends Serializable> {

  void delete(E entity);

  void evict(E entity);

  List<E> loadAll();

  List<E> loadByExample(E exampleEntity);

  E loadById(ID id, boolean lock);

  void save(E entity);
}
